var exec = require('cordova/exec');

exports.DoSome = function (action,arg0, success, error) {
    exec(success, error, 'telemanager', action, [arg0]);
};


/*
 $scope.tel = function() {
        var info={};
        info['Phone']=$('#telnum').val();
        alert(info['Phone']);
        var extraInfo = cordova.require('com.onluy.plugins.telemanager.telemanager');
                      extraInfo.DoSome('Tel',info,
                      //success
                      function(message) { alert(message);  },
                      //error
                      function(message) {  alert(message); });
         window.open('tel:' + info['Phone']);
  };
*/